﻿using System;
using System.Collections.Generic;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

using SmlEngine.UI.Screens;

namespace SmlEngine.UI.Controls
{
    public sealed class ControlContainer : Control, IScene
    {
        public Rectangle? Area { get; set; }
        public bool IsDebugging { get; set; }

        public ControlContainer(Screen screen)
            : base(screen) { }

        public void Initialize() { }

        public void ReloadContent() { }

        public void Debug()
        {
            IsDebugging = true;
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch, Area.HasValue ? Area.Value.Location : Point.Zero);
        }
    }
}
